class A
{
	int	x;
	A(int xx)
	{
	this.x=xx;
	}
	void print()
	{
	System.out.println("X is: "+x);
	}
}

class B extends A
{
	float y;
	B(int xx,float yy)
	{
	super(xx);
	this.y=yy;
	}
	void printB()
	{
	super.print();
	System.out.println("Y is:"+y);
	}
}
	
class C extends A
{
	double z;
	C(int xx,double zz)
	{
	super(xx);
	this.z=zz;
	}
	void printC()
	{
	super.print();
	System.out.println("Z is:"+z);
	}
}


class Test_1
{
public static void main(String args[])
	{
	B b1;
	b1=new B(100,100.55f);
	b1.printB();
	
	C c1;
	c1= new C(200,200.5);
	c1.printC();
	}
}
